//
//  UILabel+XJLabel.m
//  weiboOC
//
//  Created by 徐绩 on 16/4/22.
//  Copyright © 2016年 ayumi. All rights reserved.
//

#import "UILabel+AYMLabel.h"

@implementation UILabel (AYMLabel)

+(instancetype)textColor:(UIColor *)color font:(CGFloat)font{

    UILabel *label = [[self alloc] init];
    label.textColor = color;
    label.font = [UIFont systemFontOfSize:font];
    label.numberOfLines = 0;
    
    
    return label;
}

+(instancetype)textColor:(UIColor *)color font:(CGFloat)font maxWidth:(CGFloat)preferredMaxLayoutWidth{

    UILabel *label = [[self alloc] init];
    label.textColor = color;
    label.font = [UIFont systemFontOfSize:font];
    label.numberOfLines = 0;
    label.preferredMaxLayoutWidth = preferredMaxLayoutWidth;
    
    return label;
}

@end
